package com.goodboys.dao;

import com.goodboys.base.dao.BaseDao;
import com.goodboys.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Repository("userDao")
public interface UserDao extends BaseDao<User>{

    Integer isExist(String phone);

    User login(User user);

    List<User> nearUserList(Map map);

    Integer nearUserListCount(Map map);

    User selectByPrimaryPhone(User user);

    User selectByPrimaryId(@Param("id") String id);
}